package edu.xalead;

import lombok.Data;
import lombok.Setter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Controller;

import javax.annotation.Resource;


@Setter
@Controller
public class UserServlet {
//    @Autowired
//    @Qualifier("set")
    @Resource
    private UserService userService;
    public void findUser(){
        System.out.println("spring工厂的示例");
        System.out.println(userService.findUser());
    }
}
